{% extends "layout.html" %}

{%- block content %}
<div class="container">

    <div class="row">

        <!-- Blog Entries Column -->
        <div class="col-md-8">
            <div class="page-header">
                <h1>{{ user.username }}</h1>
                {% if user.username or user.location %}
                <p>
                    {% if user.username %}{{ user.username }}{% endif %}
                    {% if user.location %}
                    From <a href="http://maps.google.com/?q={{ user.location }}">
                    {{ user.location }}
                </a>
                    {% endif %}
                </p>
                {% endif %}
                {% if current_user.is_administrator() %}
                <p><a href="mailto:{{ user.email }}">{{ user.email }}</a></p>
                {% endif %}
                {% if user.about_me %}<p>{{ user.about_me }}</p>{% endif %}
                <p>
                    {% if user.date_joined %}
                    Member since {{user.date_joined.strftime('%Y-%m-%d %H:%M:%S %p') }}.
                    Last seen {{user.last_login.strftime('%Y-%m-%d %H:%M:%S %p') }}.
                    {% endif %}
                </p>
                 <a class="btn btn-primary" href="{{url_for('blog.edit_profile')}}" role="button">Edit</a>
            </div>
        </div>
    </div>
</div>
{%- endblock %}